-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AppFlow] - Bad task filter formatting when updated programmatically using boto3 #4305
Comments
Thanks for reaching out. The boto3 update_flow command calls the UpdateFlow API, so this issue appears to be with the service API rather than the SDK directly. If there's an issue with the API behavior then we can reach out to the AppFlow team internally regarding this. First could you provide a complete minimal snippet for reproducing the issue? The current snippet is missing the value for Have you also tried reproducing this outside of Lambda? The default boto3 version included in the Python runtime for Lambda is often a few versions behind latest, so you may be missing recent updates/fixes. (The latest boto3 version per the CHANGELOG is Can you also share your debug logs (with any sensitive info redacted) which you can get by adding |
Hi Tim, thanks for your quick reply! I have installed the latest boto3 version (1.35.41) on my VSCode by using Still getting the same behavior as previously mentioned, both running the function locally on VSCode or directly on AWS Console. Right below is the minimal snippet for reproducing the issue:
Here is the redacted log of my last execution: Please let me know if you need any additional information. Thanks in advance. |
Hi Tim, I have found the problem: I was using the parameter "VALUE" instead of "VALUES" inside "taskProperties". |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
We are trying to update an AppFlow filter programmatically, using the Boto3 library on Lambda.
The flow has a SAP instance as source data and S3 bucket as destination.
After successfully updating the flow filter with option "is exactly" as condition and multiple criteria, (as shown in the print below), the following filter is sent on the URL to the SAP instance on the first running:
( SalesOrder eq '2001,1790' )
However, when saving the flow manually using AWS Console (without making any changes), a different filter format is sent on the URL to SAP:
( ( SalesOrder eq '2001 ' ) or ( SalesOrder eq ' 1790' ) )
Regression Issue
Expected Behavior
Send the correct filter format on URL to SAP on the first running after filter update using The Boto3 library:
( ( SalesOrder eq '2001 ' ) or ( SalesOrder eq ' 1790' ) )
Current Behavior
On the first running after filter update using Boto3, a incorrect filter format is sent on the URL to SAP instance:
( SalesOrder eq '2001,1790' )
Reproduction Steps
Configure a new flow with using SAP OData connector to call an API (e.g. API_SALES_ORDER_SRV/A_SalesOrderItem) on AWS Console.
Programmatically add a new filter to the flow, with option "is exactly" as condition and multiple criteria:
`
logger = logging.getLogger()
logger.setLevel(logging.INFO)
`
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.34.155
Environment details (OS name and version, etc.)
Python 3.12
The text was updated successfully, but these errors were encountered: