You need to be logged in to view a user's profile.
  1. Stan Zihlman
  2. PowerBuilder
  3. Tuesday, 16 July 2024 16:37 PM UTC

PBAutoBuild fails with JSON syntax error.

Client/Server App

Scenario 1: Build pbl's from GIT into Workspace

Setup 1 is:

SourceControl = GIT

Encoding = UTF-16 LE BOM

Start of JSON file:

{
"MetaInfo": {
"IDEVersion": "220",
"RuntimeVersion": "22.2.0.3356"
},
"BuildPlan": {

Error is:

09:56:36 [Normal] PBAutoBuild Version: 22.2.0.3356.
09:56:36 [Normal] Work Path: c:\Program Files (x86)\Appeon\PowerBuilderUtilities 22.0\pbautobuild220.exe.
09:56:36 [Normal] Runtime Version: 22.2.0.3356.
09:56:36 [Normal] Load file: c:\users\szihlma\appdata\local\appeon\powerbuilder 22.0\pb.ini
09:56:36 [Normal] Start processing parse json to model code segment.
09:56:36 [Error] Json format error!
Error Row: 1.
Error Offset: 1.
Error Text: Ἠ吒⿨Ĉ㪰Ĉ㴠Ĉ

Setup 2 is:

Same as Setup 1 except Encoding = UTF-8

Error is:

09:51:12 [Normal] PBAutoBuild Version: 22.2.0.3356.
09:51:12 [Normal] Work Path: c:\Program Files (x86)\Appeon\PowerBuilderUtilities 22.0\pbautobuild220.exe.
09:51:12 [Normal] Runtime Version: 22.2.0.3356.
09:51:12 [Normal] Load file: c:\users\szihlma\appdata\local\appeon\powerbuilder 22.0\pb.ini
09:51:12 [Normal] Start processing parse json to model code segment.
09:51:12 [Error] Json format error!
Error Row: 116.
Error Offset: 9312.
Error Text: ∈吒⿨ċ㪰ċ㴠ċ

There is no data on row 116

Scenario 2: Existing pbl's in Workspace

SourceControl = NONE

Encoding = UTF-16 LE BOM

No errors - successful build.

 

Accepted Answer
kitty he @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 17 July 2024 08:18 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Stan,

 

Your error message is [Error] Json format error!

First, please check if you added any settings after exporting the JSON file. If you're not sure, can you post the content of your exported JSON file (just the part before "project")?

 

Regards, 

Kitty

Comment
There are no comments made yet.
Stan Zihlman Accepted Answer Pending Moderation
  1. Thursday, 18 July 2024 18:04 PM UTC
  2. PowerBuilder
  3. # 1

Hi Kitty,

I did make changes to the JSON file, using NOTEPAD and NOTEPAD++.

When I made a fresh extract of the Project object, the making the changes in SnapDevelop, and saved, I did not get the error, and the build was successful.

SnapDevelop was my solution.

 

Thanks,

Stan

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.