Hello guys, so I ran into a problem. I have 2 workflows. They are basically the same, except one generates a data table, takes the values of columns, puts them in a string variable and passes to HTTP request body, other takes them from an excel file and passes to HTTP body. When i try to do the Excel running workflow It goes without any errors. But when I try to do it with Generate Data table from Text (text is taken from an excel file) it fails. I cant seem to find the problem, because the variables that im passing to the body are the same. The same format and everything, but one is working, other is not. I preffer to make this problem out and use the one that doesnt use Excel file, because then its fully automated. Here are the bodies…
Excel file generated body (THIS ONE WORKS):
"username=signeda" +
"&password=" + Uri.EscapeDataString("mRID7dy9l9E3HIII") +
"&user_token=" + Uri.EscapeDataString("5cf80c4f395d74cf8b8e6860f0c574cf") +
"&car_id=" + Uri.EscapeDataString(CurrentRow.Item("car_id").ToString) +
"&category_id=" + Uri.EscapeDataString(CurrentRow.Item("category_id").ToString) +
"&quality=" + Uri.EscapeDataString(CurrentRow.Item("quality").ToString) +
"&status=" + Uri.EscapeDataString(CurrentRow.Item("status").ToString) +
"&position=" + Uri.EscapeDataString(CurrentRow.Item("position").ToString) +
"¬es=" + Uri.EscapeDataString(CurrentRow.Item("notes").ToString) +
"&manufacturer_code=" + Uri.EscapeDataString(CurrentRow.Item("manufacturer_code").ToString) +
"&visible_code=" + Uri.EscapeDataString(CurrentRow.Item("visible_code").ToString) +
"&other_code=" + Uri.EscapeDataString(CurrentRow.Item("other_code").ToString) +
"&internal_notes=" + Uri.EscapeDataString(CurrentRow.Item("internal_notes").ToString) +
"&photo=" + Uri.EscapeDataString(CurrentRow.Item("photo").ToString) +
"&photos[]=" + Uri.EscapeDataString(CurrentRow.Item("part_photo_gallery").ToString) +
"&photos[]=" + Uri.EscapeDataString(CurrentRow.Item("part_photo_gallery1").ToString) +
"&photos[]=" + Uri.EscapeDataString(CurrentRow.Item("part_photo_gallery3").ToString) +
"&photos[]=" + Uri.EscapeDataString(CurrentRow.Item("part_photo_gallery4").ToString) +
"&photos[]=" + Uri.EscapeDataString(CurrentRow.Item("part_photo_gallery2").ToString) +
"&photos[]=" + Uri.EscapeDataString(CurrentRow.Item("part_photo_gallery5").ToString) +
"&optional_codes[]=" + Uri.EscapeDataString(CurrentRow.Item("optional_codes").ToString) +
"&optional_codes[]=" + Uri.EscapeDataString(CurrentRow.Item("optional_codes1").ToString) +
"&optional_codes[]=" + Uri.EscapeDataString(CurrentRow.Item("optional_codes2").ToString) +
"&optional_codes[]=" + Uri.EscapeDataString(CurrentRow.Item("optional_codes3").ToString) +
"&optional_codes[]=" + Uri.EscapeDataString(CurrentRow.Item("optional_codes4").ToString) +
"&price=" + Uri.EscapeDataString(CurrentRow.Item("price").ToString)
Generate Data table from text workflow Body (This doesnt work, something is wrong in the format I think):
"username=signeda" +
"&password=" + Uri.EscapeDataString("mRID7dy9l9E3HIII") +
"&user_token=" + Uri.EscapeDataString("5cf80c4f395d74cf8b8e6860f0c574cf") +
"&car_id=" + Uri.EscapeDataString(CurrentRow.Item("car_id").ToString) +
"&category_id=" + Uri.EscapeDataString(CurrentRow.Item("category_id").ToString) +
"&quality=" + Uri.EscapeDataString(CurrentRow.Item("quality").ToString) +
"&status=" + Uri.EscapeDataString(CurrentRow.Item("status").ToString) +
"&position=" + Uri.EscapeDataString(CurrentRow.Item("position").ToString) +
"¬es=" + Uri.EscapeDataString(CurrentRow.Item("notes").ToString) +
"&manufacturer_code=" + Uri.EscapeDataString(CurrentRow.Item("manufacturer_code").ToString) +
"&visible_code=" + Uri.EscapeDataString(CurrentRow.Item("visible_code").ToString) +
"&other_code=" + Uri.EscapeDataString(CurrentRow.Item("other_code").ToString) +
"&internal_notes=" + Uri.EscapeDataString(CurrentRow.Item("internal_notes").ToString) +
"&photo=" + Uri.EscapeDataString(CurrentRow.Item("photo").ToString) +
"&photos[]=" + Uri.EscapeDataString(("part_photo_gallery").ToString) +
"&photos[]=" + Uri.EscapeDataString(("part_photo_gallery1").ToString) +
"&photos[]=" + Uri.EscapeDataString(("part_photo_gallery2").ToString) +
"&photos[]=" + Uri.EscapeDataString(("part_photo_gallery3").ToString) +
"&photos[]=" + Uri.EscapeDataString(("part_photo_gallery4").ToString) +
"&photos[]=" + Uri.EscapeDataString(("part_photo_gallery5").ToString) +
"&optional_codes[]=" + Uri.EscapeDataString(("optional_codes").ToString) +
"&optional_codes[]=" + Uri.EscapeDataString(("optional_codes1").ToString) +
"&optional_codes[]=" + Uri.EscapeDataString(("optional_codes2").ToString) +
"&optional_codes[]=" + Uri.EscapeDataString(("optional_codes3").ToString) +
"&optional_codes[]=" + Uri.EscapeDataString(("optional_codes4").ToString) +
"&price=" + Uri.EscapeDataString(CurrentRow.Item("price").ToString)
I just cant figure out how is the second one not working. The first one in the column photos and optional_codes uses CurrentRow.Item to input the values. The second one has variables with the same values (I checked them out by doing Message box on both of them, that way tried to compare it). Could anyone be so kind and help me figure out the problem?
EDIT: HTTP REQUEST BODY throws an error, that the photos values are bad and it cant upload when running the second body workflow. So to compare, i will attatch 2 First and the most important URL’s values that are being put into the body:
The working workflow:
https%3A%2F%2Fwww.signeda.lt%2Fimage%2Fcatalog%2Fproducts-gl%2Fc_112234.jpg
not working:
https%3A%2F%2Fwww.signeda.lt%2Fimage%2Fcatalog%2Fproducts-gl%2Fc_112234.jpg