Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Umbraco Forms 8.3.1
Umbraco Core 8.4
What would cause GetRecordsFromForm() to throw a NullReferenceException? Entries do exist in the database.
GetRecordsFromForm()
I'm using
var recordReaderService = Current.Factory.GetInstance<IRecordReaderService>(); IEnumerable<IRecord> records = recordReaderService.GetRecordsFromForm(new Guid("391d05d6-d972-4e18-8e5e-6295e606c2cd"), 1, int.MaxValue).Items;
The code has worked fine previously so I don't know what is causing it. I have tried it on different forms and still get the same error.
Have you injected IRecordReaderService into your constructor?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
RecordReaderService.GetRecordsFromForm NullReferenceException
Umbraco Forms 8.3.1
Umbraco Core 8.4
What would cause
GetRecordsFromForm()
to throw a NullReferenceException? Entries do exist in the database.I'm using
var recordReaderService = Current.Factory.GetInstance<IRecordReaderService>(); IEnumerable<IRecord> records = recordReaderService.GetRecordsFromForm(new Guid("391d05d6-d972-4e18-8e5e-6295e606c2cd"), 1, int.MaxValue).Items;
The code has worked fine previously so I don't know what is causing it. I have tried it on different forms and still get the same error.
Have you injected IRecordReaderService into your constructor?
is working on a reply...