SAP Knowledge Base Article - Public

3051935 - Warning Length of Data Type 'UNLIMITED_WebURI' is Restricted to 255 Characters In the Data Base when used with [Transient] tag

Symptom

You need to use the Data type UNLIMITED_WebURI to store a URL of length greater than 255 characters for use during runtime.

You do not need to to store the value in the database.

You have used the datatype UNLIMITED_WebURI in your Custom BO with the [Transient] tag and you see the following warning in the Error List in the Cloud Applications Studio:

"Warning Length of data type 'UNLIMITED_WebURI' is restricted to 255 characters in the database."

Environment

  • SAP Cloud Applications Studio
  • SAP Cloud for Customer
  • SAP Business ByDesign

Reproducing the Issue

  1. Define an element on your Custom BO in your Custom Solution as follows: Element:[Transient] element NameOfElement:UNLIMITED_WebURI;
  2. The warning is displayed in the error output window

Cause

The truncating will only occur while storing the data in the database.

Resolution

  1. The warning message "Length of data type 'UNLIMITED_WebURI' is restricted to 255 characters in the database" is correct. 
  2. Since this field is Transient, it will not be stored in the database.
  3. The value will not be truncated and you can use it to store URLs with more that 255 characters for use during runtime. 

See Also

 https://blogs.sap.com/2018/08/10/single-persistency-has-finally-reached-pdi/

Keywords

Cloud Studio, PDI, UNLIMITED_WebURI, 255, Transient, URL, Runtime, Custom Business Object, SDK , KBA , AP-RC-UIF , C4C UI Framework , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , AP-RC-BDS-1O , ByDesign Studio OneOffs , AP-RC-BDS-BO , ByDesign Studio BO definition/generation , How To

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions