cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kwoxer
Advocate II
Advocate II

Create file and Get Tables result in BadRequest - Excel Online does not work

I use the Create File of OneDrive (for Business). This creates a dynamic name for my file. That one has the current timestamp from a variable at the end.

 

After that I access that file via Excel online (Business) with the Get Tables.

 

kwoxer_0-1610101091423.png

But when I run it I get BadRequest. That's strange because the file has been created successfully.

kwoxer_0-1610101664741.png

 

Okay so I was thinking that it might be the issue with the dynamic timestamp. And my attempt was kind of true. When I set the name to a static one, it works with the Get Tables. But this is no solution, as I get the 423er error after some runs. So Way saver for me would be the dynamic solution with the timestamp.

 

You have any idea why I run into the 423er error issue, or why the Get Tables fails, although the file exists?

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @kwoxer,

 

Can you try and use the Id dynamic value of the Create file 2 action and see if that works?

 

outputs('Create_file_2')?['body/Id']

 

 createfileid.png

View solution in original post

2 REPLIES 2
Expiscornovus
Super User
Super User

Hi @kwoxer,

 

Can you try and use the Id dynamic value of the Create file 2 action and see if that works?

 

outputs('Create_file_2')?['body/Id']

 

 createfileid.png

Works but does not makes sense to me. At the end it accesses the same file. In your case the file is used by reference. Anyway not good to just give the useless error message of BadRequest.

 

Thanks anyway.

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,909)