You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Shopify Order is imported and an error occurs after the CreateHeaderFromShopifyOrder finishes, then the order is order is reimported shortly thereafter, which currently clears the error message, making any consistent follow-up impossible. I don't know if the fact that the error message is cleared only happens in these cases or if there's a second issue where this also happens on new orders imported.
The cause is that in function CreateHeaderFromShopifyOrder there's an API call to shopify to add the BC Doc No. attribute.
This update triggers a webhook notification to BC, which reimports the same order.
Expected behavior
Update of attributes in Shopify shouldn't happen until the full document has been created and any errors have been accounted for.
I would move the following lines to a separate function
Describe the issue
When a Shopify Order is imported and an error occurs after the CreateHeaderFromShopifyOrder finishes, then the order is order is reimported shortly thereafter, which currently clears the error message, making any consistent follow-up impossible. I don't know if the fact that the error message is cleared only happens in these cases or if there's a second issue where this also happens on new orders imported.
The cause is that in function CreateHeaderFromShopifyOrder there's an API call to shopify to add the BC Doc No. attribute.
This update triggers a webhook notification to BC, which reimports the same order.
Expected behavior
Update of attributes in Shopify shouldn't happen until the full document has been created and any errors have been accounted for.
I would move the following lines to a separate function
https://github.com/microsoft/ALAppExtensions/blob/18455700ada751a86886a8cefdb071bd4a76ce71/Apps/W1/Shopify/app/src/Order%20handling/Codeunits/ShpfyProcessOrder.Codeunit.al#L139C1-L143C7
This function should be called just before the Auto Release check.
Steps to reproduce
Prepare a case where a sales line will return an error on creation.
Additional context
No response
I will provide a fix for a bug
The text was updated successfully, but these errors were encountered: