Base solution for your next web application
Open Closed

Issue in Aspnet Zero Power tool entity Creation #9915


User avatar
0
mahendra created
  • What is your product type (Angular or MVC)?
  • Angular
  • What is product framework type (.net framework or .net core)?
  • .net Core Hi ,

We are facing compile time error in angular project while creating the entity using ASPNET zero Tool power tool. Error : **app/admin/oeisListingTemps/oeisListingTemps/oeisListingTemps.component.ts:111:22 - error TS1005: ',' expected. 111 this.urI​Filter, ** Please find attached screen shots for your reference. Note : We are getting this compile time error for few fields like Identifier , URL ,Version etc. Any help would be appreciated ..

Thanks


7 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mahendra

    Could you share;

    1. Generated json file for your entity ?
    2. Share lines 111 and 112 of your generated TS file ?
  • User Avatar
    0
    mahendra created

    HI , Please find the attached json for the entity. We have also attached the line no in screenshot.

    Json:

    {
      "IsRegenerate": false,
      "MenuPosition": "admin",
      "RelativeNamespace": "OEISListingTemps",
      "EntityName": "OEISListingTemp",
      "EntityNamePlural": "OEISListingTemps",
      "TableName": "OEISListingTemp",
      "PrimaryKeyType": "int",
      "BaseClass": "FullAuditedEntity",
      "EntityHistory": false,
      "AutoMigration": false,
      "UpdateDatabase": false,
      "CreateUserInterface": true,
      "CreateViewOnly": true,
      "CreateExcelExport": true,
      "IsNonModalCRUDPage": false,
      "IsMasterDetailPage": false,
      "PagePermission": {
        "Host": false,
        "Tenant": false
      },
      "Properties": [
        {
          "Name": "Identifier​",
          "Type": "string",
          "MaxLength": -1,
          "MinLength": -1,
          "Range": {
            "IsRangeSet": false,
            "MinimumValue": 0.0,
            "MaximumValue": 0.0
          },
          "Required": false,
          "Nullable": false,
          "Regex": "",
          "UserInterface": {
            "AdvancedFilter": true,
            "List": true,
            "CreateOrUpdate": true
          }
        },
        {
          "Name": "URI​",
          "Type": "string",
          "MaxLength": -1,
          "MinLength": -1,
          "Range": {
            "IsRangeSet": false,
            "MinimumValue": 0.0,
            "MaximumValue": 0.0
          },
          "Required": false,
          "Nullable": false,
          "Regex": "",
          "UserInterface": {
            "AdvancedFilter": true,
            "List": true,
            "CreateOrUpdate": true
          }
        },
        {
          "Name": "PlatformVersion​",
          "Type": "string",
          "MaxLength": -1,
          "MinLength": -1,
          "Range": {
            "IsRangeSet": false,
            "MinimumValue": 0.0,
            "MaximumValue": 0.0
          },
          "Required": false,
          "Nullable": false,
          "Regex": "",
          "UserInterface": {
            "AdvancedFilter": true,
            "List": true,
            "CreateOrUpdate": true
          }
        },
        {
          "Name": "Version",
          "Type": "string",
          "MaxLength": -1,
          "MinLength": -1,
          "Range": {
            "IsRangeSet": false,
            "MinimumValue": 0.0,
            "MaximumValue": 0.0
          },
          "Required": false,
          "Nullable": false,
          "Regex": "",
          "UserInterface": {
            "AdvancedFilter": true,
            "List": true,
            "CreateOrUpdate": true
          }
        },
        {
          "Name": "APIVersion",
          "Type": "string",
          "MaxLength": -1,
          "MinLength": -1,
          "Range": {
            "IsRangeSet": false,
            "MinimumValue": 0.0,
            "MaximumValue": 0.0
          },
          "Required": false,
          "Nullable": false,
          "Regex": "",
          "UserInterface": {
            "AdvancedFilter": true,
            "List": true,
            "CreateOrUpdate": true
          }
        }
      ],
      "NavigationProperties": [],
      "NavigationPropertyOneToManyTables": [],
      "EnumDefinitions": [],
      "DbContext": null
    }
    
  • User Avatar
    0
    musa.demir created

    Hi @mahendra Your json file has unexpected non ASCII characters. To see that ,open your json file with any kind of editor with ansı encoding(I used notepad++). Then you will be able to see the unexpected character (it is zwsp character I guess. See https://en.wikipedia.org/wiki/Zero-width_space). Remove that characters and your problem will be solved.

    I guess you copy-pasted that property names to radtool from somewhere else. That might be the reason.

  • User Avatar
    0
    mahendra created

    HI musa.demir ,

    This Json file is generated from tool. We have not modified anything.

    When we type the variable again, this error gone. Please suggest what i need to do.

    Still we are facing same issue .

    Thanks Ashish

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mahendra

    Does the Power Tools output the same json file with strange character when you generate the same entity ?

  • User Avatar
    0
    mahendra created

    Hi ismcagdas,

    yes , the same json file with the Strange Chanracter is generated . However we have noticed this behaviour for few fields like identififer, URL , version etc . as mentioned earlier.

    Note : We are not making any changes in the generated JSON file.

    Thanks Ashish

  • User Avatar
    0
    musa.demir created

    This Json file is generated from tool. We have not modified anything.

    I did not say that you change json file. Here is what I said.

    I guess you copy-pasted that property names to radtool from somewhere else. That might be the reason.

    Can you please clean the property name input and retype it. That may solve your problem.