eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. ๐—น๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ๐—ถ๐—ป.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ, ๐˜†๐—ผ๐˜‚๐˜๐˜‚๐—ฏ๐—ฒ.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ and ๐˜๐˜„๐—ถ๐˜๐˜๐—ฒ๐—ฟ @๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ and or simply ๐—ฆ๐˜๐—ฎ๐—ฟ/๐˜„๐—ฎ๐˜๐—ฐ๐—ต this repository and get notified from ๐—š๐—ถ๐˜๐—›๐˜‚๐—ฏ
http://expand.expandframework.com
Microsoft Public License
220 stars 114 forks source link

Model Editor Error - String Value is too long #1060

Closed DannyRawlings closed 3 months ago

DannyRawlings commented 3 months ago

Hello

I am not sure what has changed - But I am getting the following error when loading the ME.

It seems to relate to the file path of my project as I have tested it and it works fine with shorter file paths. But from my perspective, this has always been the same - I've not changed anything from myside.

Issue is tested with both .Net 7 and .Net 8. I have tried the usual re install etc...

Any help is appreciated, below is as much info as I could find.

`See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** DevExpress.Xpo.DB.Helpers.InMemorySetException: String value is too long. at DevExpress.Xpo.DB.Helpers.InMemoryRow.CheckValues(Boolean setDefaults, Boolean checkAutoIncrement) at DevExpress.Xpo.DB.Helpers.InMemoryRow..ctor(InMemoryTable table, ICollection1 initData) at DevExpress.Xpo.DB.Helpers.DataSetStoreHelpersFull.DoInsertRecord(InMemoryTable table, QueryParameterCollection parameters, CriteriaOperatorCollection operands, ParameterValue identityParameter, TaggedParametersHolder identitiesByTag) at DevExpress.Xpo.DB.InMemoryDataStore.<>c__DisplayClass32_0.<ProcessModifyData>b__0()

ExpressAppFramework Log extract

`Xpand.XAF.ModelEditor.Win Error: 0 : 04.06.24 10:04:51.755 ================================================================================ The error occurred:

Type:       SqlExecutionErrorException
Message:    Executing Sql 'insert into XafModel values ('CLAAS_Dealer_Tools.Blazor.Server\Model_en-GB', 1, 'C:\Users\i007106\OneDrive - CLAAS\Dokumente\Development\Web\Blazor\CLAAS Dealer Tools\CLAAS_Dealer_Tools.Blazor.Server\Model_en-GB.xafml', False, 0)' with parameters '' exception 'DevExpress.Xpo.DB.Helpers.InMemorySetException: String value is too long.

at DevExpress.Xpo.DB.Helpers.InMemoryRow.CheckValues(Boolean setDefaults, Boolean checkAutoIncrement) at DevExpress.Xpo.DB.Helpers.InMemoryRow..ctor(InMemoryTable table, ICollection`1 initData) at DevExpress.Xpo.DB.Helpers.DataSetStoreHelpersFull.DoInsertRecord(InMemoryTable table, QueryParameterCollection parameters, CriteriaOperatorCollection operands, ParameterValue identityParameter, TaggedParametersHolder identitiesByTag) at DevExpress.Xpo.DB.InMemoryDataStore.<>c__DisplayClass32_0.b__0()' Data: 0 entries Stack trace:

at Xpand.Extensions.XAF.XafApplicationExtensions.XafApplicationExtensions.HandleException(XafApplication application, Exception exception) at System.Reactive.Linq.ObservableImpl.Do`1.OnNext._.OnNext(TSource value)

InnerException:

        Type:       InMemorySetException
        Message:    String value is too long.
        Data:       0 entries
        Stack trace:

at DevExpress.Xpo.DB.Helpers.InMemoryRow.CheckValues(Boolean setDefaults, Boolean checkAutoIncrement) at DevExpress.Xpo.DB.Helpers.InMemoryRow..ctor(InMemoryTable table, ICollection1 initData) at DevExpress.Xpo.DB.Helpers.DataSetStoreHelpersFull.DoInsertRecord(InMemoryTable table, QueryParameterCollection parameters, CriteriaOperatorCollection operands, ParameterValue identityParameter, TaggedParametersHolder identitiesByTag) at DevExpress.Xpo.DB.InMemoryDataStore.<>c__DisplayClass32_0.<ProcessModifyData>b__0() InnerException is null

image image

apobekiaris commented 3 months ago

HI

you sure you are on the latest version? of the plugin? which is your version?

DannyRawlings commented 3 months ago

I have also tested the project by moving it to the root of the drive - still same error

This is the version I am using after it was reinstalled via Visual Studio

image

apobekiaris commented 3 months ago

apparently the problem is with C:\Users\i007106\OneDrive - CLAAS\Dokumente\Development\Web\Blazor\CLAAS Dealer Tools\CLAAS_Dealer_Tools.Blazor.Server\Model_en-GB.xafml

move the project to a shorter path to workaround it until I publish a fix

apobekiaris commented 3 months ago

plugin published, note Rider takes a 1-2 days

DannyRawlings commented 3 months ago

No rush from my side, but I already moved it to a shorter path and still had the same issue.

apobekiaris commented 3 months ago

C:\Users\i007106\OneDrive - CLAAS\Dokumente\Development\Web\Blazor\CLAAS Dealer Tools\CLAAS_Dealer_Tools.Blazor.Server\Model_en-GB.xafml

should be 100 characters or less as per XPO default column size, VS plugin is now online please try it and let me know

DannyRawlings commented 3 months ago

Cheers Iโ€™ll have a look in the morning..

DannyRawlings commented 3 months ago

It works again now. Thank you again

DannyRawlings commented 3 months ago

Resolved