Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Worker

Pages: [1]
1
Bugs and Issues / Re: Microsoft Cursor Engine Error [0x80040e38]
« on: July 23, 2024, 04:16:03 pm »
The connection is PCS 5.1.125, see the thread start. Yesterday I tried to run the script from EA 13.5.1352 on another machine (hoping the problem is with EA16), but it has appeared again. Trying direct DB connection for the EA instance on server may be an option to try.

2
Bugs and Issues / Re: Microsoft Cursor Engine Error [0x80040e38]
« on: July 23, 2024, 12:58:39 am »
The situation remains the same - in majority of cases (I update consequently a package name and its parent package), the Cursor Engine Error still appears. I tried
- <package>.Packages.Refresh
- Repository.ReloadPackage()
- waiting 10 seconds between the steps
- discarding the newly created package object and reloading it by GUID
- using my own tool (export + import) instead of Package.Clone()

The complete case is:
- initial package structure:
<package 1>
      <package2>
             <template package>
Then first step is a copy of <template package> into the <package 2>. That don't fail at all.
So I have:
<package 1>
      <package2>
             <template package>
             <new package>
Next, the <new package is renamed. This is failing in >50% cases. In EA, the package is usualy renamed, but GetLastError() contains the error
<package 1>
      <package2>
             <template package>
             <new package-renamed>
Next, the package is moved to <package 1>. This fails in >50% cases. I don't remember, what was the ratio when the package has been moved and when not.

It's probably worth to mention, that <package1> contains ~ 1000 packages. Could that be the reason? Probably not for the renaming case, I guess.
The <package2> contains just the template in initial state.

My last resort is probably - just the retry. If an error is thrown, check the actual status by API and DB select, and if that's wrong, try it again ...

3
BobM, you are perfectly right, but the software reporting this error is Sparx Pro Cloud Server, i.e. closed-source SW out of my control. So I have very limited possibilities to monitor what could be the issue.
Yes, concurrency may be the issue, as our model is large (~3GB, 200k packages) and traffic is at least moderate (~100 users), but I'd expect from Sparx, that while offering PCS option, such issues must be taken into consideration, tested and resolved.

4
Do you know what could be the issue when in the PCS log appears
[WARNING]: Thread xxx  Exception in CFileStream::Write while attempting to write to memory file
?
The environment:
Windows Server 2022, PCS 5.1.125 64-bit, MySQL 8.0.33

5
The MS Copilot can convert chunks of code relatively OK - but the code only, it removes all the comments. Silly.
Where I have an issue is user interaction - using JS you lose InputBox (which I use to create primitive number-based menues) and MessageBox (where I like both the icons and the selection of buttons).
Ok, there are some workarounds, but working so-so, and only in 32-bit EA. So Sparx should suggest / create some ways of user interactions within JS scripts, beside the Session.Input and Session.Output, but I don't know, if there is enough interest.

6
Bugs and Issues / Re: Microsoft Cursor Engine Error [0x80040e38]
« on: April 26, 2024, 09:55:56 pm »
Thanks, Geert.
I made a full reload and used rather the package GUID (pseudocode):
storedPackageGUID = <newPackage>.PackageGUID
<newPackage> = nothing
<newPackage> = Repository.GetPackageByGUID(storedPackageGUID)

and this seems to work.

Thanks, You saved my weekend!

7
Bugs and Issues / Microsoft Cursor Engine Error [0x80040e38]
« on: April 26, 2024, 07:21:11 pm »
Hi,

Running a script containing a sequence of
set <newPackage> = <package>.Clone
<newPackage>.ParentID = <target parent ID>
<newPackage>.Update


fails on .Update with <newPackage>.GelLastError() returning:
Enterprise Architect (Build: 1628 - 32 bit)
Microsoft Cursor Engine [0x80040e38]
Row cannot be located for updating. Some values may have been changed since it was last read.

This error appears since upgrade from EA 13.5 to 16.2 (other staff didn't change since then).
The setup:
Windows Server 2022 Standard
EA 16.2 Enterprise Edition, 32-bit
ProCloud Server 5.1.125
ODBC 64-bit, enabled Allow big result sets, Allow multiple statements, Disable schema support, Return matched rows instead of affected rows, Prepare statements on the client
DB MySQL 8.0.33
Schema 1558

I attempted to add into the script <parentpackageOfThePackage>.Packages.Refresh and <targetParentPackage>.Packages.Refresh, hoping the package structure would update, but without success.
Any clue what could be wrong? Thanks

Pages: [1]