SharpSync
  • Welcome
  • Fundamentals
    • Getting Started
      • Registration
      • Landing Page
      • Support
      • Subscription
    • Data Sources
    • Property Mappings
      • Adding Property Mapping
      • Property Mapping Settings
    • Rules
      • Import / Export
        • Append text
        • Calculate number
        • Export manipulation
        • Format as decimal number
        • Prepend text
        • Remove property
        • Replace all instances
        • Replace first instance
        • Round to nearest X
        • Select from JSON
        • Set cell value
        • Set empty cells
        • Text manipulation
      • Display
        • Number between
        • Text contains
        • Text ends with
        • Text evaluation
        • Text is a number
        • Text is exactly
        • Text is in list
        • Text is not a number
        • Text is not empty
        • Text is not in list
        • Text length between
        • Text length is exactly
        • Text maximum length
        • Text minimum length
        • Text not contains
        • Text not ends with
        • Text not starts with
        • Text starts with
      • Advanced Scripting
    • BOM Comparison
    • Data Safety
    • Troubleshooting
      • Duplicate component paths
      • OAuth 2.0
  • Data Sources
    • Autodesk Inventor
    • CSV
      • Getting Started
      • Importing a Bill of Materials (BOM)
    • MS Dynamics 365 Business Central
      • Getting Started
      • Item Fields Json & Internal Names
      • Resource Fields Json & Internal Names
      • List Names For nestedObject Mappings
    • NetSuite
      • OAuth Setup
        • Permissions
      • RESTlet Script Setup
        • SharpSync RESTlet Script
      • Thumbnail Folder Setup
      • Authentication + Configuration
      • Common setup
        • Configure quantity mapping
        • Configure accounts mappings
        • Configure itemType mapping
        • Configure isPhantom mapping
        • Configure subsidiary mapping
        • Configure price mapping
        • Configure Where Used Link mapping
        • Configure thumbnail mapping
        • Read-Only NetSuite Fields
        • Common Mapping Rules
        • Common List names
      • Advanced Bill of Materials
      • Configure Routings
      • Integration tips
      • Troubleshooting
    • Odoo
      • Getting Started
        • Authentication + Configuration
        • Debugging tips
      • Common Setup
        • Map BOM Codes
        • Map BOM Types
        • Map Attribute Values
          • Reading Attributes - Overview
          • Display All Attribute Names
          • Display Single Attribute Values
          • Writing attributes
      • Product Management
      • Hosting Options
      • List Names
      • Permissions
      • Troubleshooting
    • Onshape
      • Getting Started
      • Setting up Derivatives
    • Propel PLM
      • Getting Started
    • SolidWorks
    • SolidWorks PDM
      • Downloading and installing the add-in
      • Configure the add-in
      • Setting up the Solidworks PDM Web 2
      • Troubleshooting
      • Submitting a BOM for update
  • Advanced
    • Derivatives
  • User management
    • User Management
    • Application Permissions
Powered by GitBook
On this page
  • Errors in Production
  • Concurrency limits.
  • Thumbnail uploads fail with errors
  • Error running script
  • Current limitation: Cannot update bom rows with incompatible subsidiaries
  • Cannot view items despite correct list permissions
  1. Data Sources
  2. NetSuite

Troubleshooting

Errors in Production

  • Concurrency limits

  • Thumbnail uploads fail with errors

  • Error running script

  • Cannot update BOMs using incompatible subsidiaries

  • Cannot view items despite correct list permissions

Concurrency limits.

In NetSuite you can review the concurrency limits and the performance of a RESTlet using the Setup > Other Setup > Integration Governance section. Concurrency of requests are monitored in NetSuite and may be subject to rejection if the limit is exceeded

or

https://{your-account-id}.app.netsuite.com/app/webservices/governance/governance.nl?whence=

  • Account Concurrency limit - Specific account limit based on service tier and license count

  • Peak concurrency - Max requests received in 1 moment in the last 30 days

  • Rejected requests - Requests exceeding the concurrency limit in the last 30 days

  • Total Requests - Number of requests for restlets and services in the last 30 days.

  • Rejected Requests Ratio - Ratio of rejected requests - if it exceeds 1% then concurrency might be the root cause

Sometimes you may see that requests fail with a result of Unauthorized. This happens when the concurrency limit is exceeded.

Thumbnail uploads fail with errors

Failed to update document thumbnail for bomPart, (errorDetails follow...)

This is typically because the user permissions is insufficient to upload document thumbnails to the specified cabinet location in NetSuite.

This message is also typically followed by

Invalid login attempt. For more details, see the Login Audit Trail in the NetSuite UI at Setup > Users/Roles > User Management > View Login Audit Trail.

Error running script

Should you get the below error despite the fact that the code is correct, make sure the the name of the script file has a .js at the end

{
    "error": {
        "code": "MODULE_DOES_NOT_EXIST",
        "message": "{\"type\":\"error.SuiteScriptModuleLoaderError\",\"name\":\"MODULE_DOES_NOT_EXIST\",\"message\":\"Module does not exist: /SuiteScripts/SharpSync/sharpsync-item-create.js\",\"stack\":[]}"
    }
}

Current limitation: Cannot update bom rows with incompatible subsidiaries

At the time of writing there is a limitation for advanced BOMs. The limitation only occurs when the subsidiary is incompatible with another subsidiary. To fix the issue:

  • All commponents (parts / assemblies) added to a BOM revision must have a compatible subsidiary as the inventory item (e.g. AssemblyItem / NonInventorResaleItem)

  • If it does not - you may see an error in the logs stating something along the lines of

    Error while accessing a resource. You have entered an Invalid Field Value 18099 for the following field: item.

  • If this is the case, locate the item using its Id e.g.

https://[customerId].app.netsuite.com/app/common/item/item.nl?id=18099

  • Make sure that the subsidiary matches that of the Bom to which it is being added.

Cannot view items despite correct list permissions

If you cannot view items despite having assigned the correct permissions for the OAuth2 role, make sure that the checkbox "Allow Cross-Subsidiary Record Viewing" is turned on.

If this setting is not turned on, you may receive the following error when querying an item

{
    "type": "https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1",
    "title": "Bad Request",
    "status": 400,
    "o:errorDetails": [
        {
            "detail": "Error while accessing a resource. Permission Violation: The restrictions on your role deny you access to this record.",
            "o:errorCode": "USER_ERROR"
        }
    ]
}
PreviousIntegration tipsNextOdoo

Last updated 1 month ago