Transform Fails on Sync with "ImportDeclaration" vs "ExpressionStatement" Mismatch #9
Unanswered
shaumik100x
asked this question in
Help and Questions with SDK or Fluent
Replies: 1 comment 5 replies
-
Hi @shaumik100x, Thanks for your feedback. We are working on enhancing the transform functionality., and we hope that would resolve this issue. Can you share a small sample app with minimal code for reproducing the issue ? if you could share the type of record that's failing we can take a look. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When attempting to synchronize our application to a local environment using the Fluent-based ServiceNow SDK, the
now-sdk transform
process fails consistently. The error message indicates a syntax mismatch during the transformation of certain records:Transform failed Unexpected! Inserting syntax kind of ImportDeclaration, but ExpressionStatement was inserted.
This error is problematic because it halts the entire synchronization process. Even a single problematic record prevents the entire application from being synced locally. This significantly disrupts our development workflow, as we are unable to pull down the latest changes and work on our application in our local development environments.
The current behavior of failing the entire transformation for a single record error is not ideal. A more resilient approach would be to log the error for the specific record and continue with the transformation of the remaining records.
We would like to request an enhancement to the transform process. Instead of failing the entire synchronization due to a single record's transformation error, we suggest the following behavior:
sys_id
and table.This would allow developers to continue their work and address the problematic record individually without a complete halt in the development workflow.
Beta Was this translation helpful? Give feedback.
All reactions