Summary
A SQL exception is generated when a specific piece of data is of a length beyond what the App Portal database can hold.Symptoms
A SQL exception is generated when a specific piece of data is of a length beyond what the App Portal database can hold. To check whether there are users within SCCM with data beyond the width of the App Portal database, the following two queries can be run against ConfigMgr?s database:select * from v_R_User where len(givenName0) > 255 OR len(sn0) > 255 OR len(Network_Operating_System0) > 255 OR len(physicalDeliveryOfficeNam0) > 255 OR len(l0) > 255 OR len(postalCode0) > 32 OR len(department0) > 255 OR len(title0) > 255 OR len(User_Name0) > 255 OR len(mail0) > 255 OR len(manager0) > 255 OR len(distinguished_Name0) > 255 OR len(Full_User_Name0) > 255 OR len(Name0) > 255 OR len(Unique_User_Name0) > 255 OR len(Windows_NT_Domain0) > 255 OR len(company0) > 255 OR len(DisplayName0) > 255
select * from v_RA_User_UserOUName where len(User_OU_Name0) > 512
Cause
A DataSync can fail as a result of source data being too large to fit within the proper field in the App Portal database. In this case, the DataSync.log will show something similar to:String or binary data would be truncated. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at AppPortal.Business.SqlService.ExecuteSQL(SqlConnection connection, String sql, List`1 parameters) at AppPortal.Business.Common.ImportDeploymentResources.ImportCMUsers(Boolean isCM12)
Resolution
In most cases where this occurs, the issue is specific to the postalCode field. Although Active Directory allows a postalCode with a length of up to 40 characters, the App Portal database field for postalCode can only hold 42. This is a bug currently being tracked as IOJ-1748247.To workaround the problem for the time being, the App Portal database can be modified to expand the width of the postalCode field by running the following against the App Portal DB:
ALTER TABLE [WD_User] ALTER COLUMN [PostalCode] nvarchar(40)
Was this helpful?
Related Articles
Viewing inventory device "Evidence" tab may fail with red error bar and error in webui.log: "String or binary data would b… 5Number of Views Mismatch of column size between SAP and FlexNet Manager Suite tables may cause errors in SAPReader.log: String or binary d… 4Number of Views Oracle Licenses Consumption Details and Optimizations report may fail with error in webui.log: "String or binary data woul… 4Number of Views "ReadVirtualMachines" ManageSoft inventory import reader may fail with error importing very long VMName or VMLocation deta… 4Number of Views FlexNet Inventory Agent Status page may show red error bar with error in webui.log if group path is longer than 256 chars:… 6Number of Views
Revenera Assistant - Beta
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago