Diagnostics

Every BEVELnnn build code, what it means and how to fix it.

On this page

Build problems show up in your dotnet build output. Each line starts with the file, then the code:

text
Data/Posts/BlogPost.cs(6,15): error BEVEL012: Duplicate dataset name 'Posts' declared by: BlogPost, NewsPost. Help: https://khalidabuhakmeh.github.io/bevel/reference/diagnostics/bevel012/

Bevel checks your whole data graph first and reports every problem together, before any loader runs. You fix them in one pass.

Every message ends with a Help: link to the page for its code. You can also pick a code from the table. Each page shows the message, what it means and how to fix it.

Code Severity What happened
BEVEL001 Error The prebuild step failedThe prebuild step crashed before it could check your data.
BEVEL010 Error A dataset depends on one that does not existA dataset names a dependency that no loader declares.
BEVEL011 Error Datasets depend on each other in a loopTwo or more datasets wait for each other, so Bevel cannot pick a load order.
BEVEL012 Error Two datasets have the same nameTwo datasets share one name, so Bevel cannot tell them apart.
BEVEL013 Error A [Reference] cannot find its targetA [Reference] points at a dataset that is not a list, or uses a Key the target type does not have.
BEVEL020 Warning Order is lower than a dependencyAn Order hint was ignored because the dataset depends on one with a higher Order.
BEVEL030 Error bevel.json declares routesbevel.json has routePattern or routeKey, which Bevel no longer reads.
BEVEL040 Error More than one startup classYour project has two or more IBevelDataStartup classes. Bevel allows one.
BEVEL041 Error Startup class needs a public parameterless constructorBevel creates your startup class itself, so it needs a public constructor with no parameters.
BEVEL042 Error Startup threw an exceptionYour IBevelDataStartup threw while Bevel registered build-time services.
BEVEL043 Error A loader needs a service nobody registeredA loader's constructor asks for a service that is not registered at build time.
BEVEL044 Error A loader could not be createdBevel found the loader's services but creating it still failed.
BEVEL050 Error Data does not survive a round tripBevel saves each dataset to JSON and reads it back. Yours changed on the way.
BEVEL051 Error Your data contains a loopAn item contains itself, directly or through other items, so it cannot be saved.
BEVEL052 Error A [Reference] cannot be storedThe member under [Reference] has a type Bevel cannot store as a key.
BEVEL053 Error Two datasets collide on a property nameTwo datasets produce the same C# property name, or one clashes with a built-in member.
BEVEL054 Error A generated name clashes with your typeA type Bevel generates has the same name as one of your types.
BEVEL060 Error A grouping attribute does not fit the memberThe grouping attribute does not match the member's type, or Bevel cannot read the member.
BEVEL061 Error A group name is empty or repeatedTwo groups on one dataset share a name, or a group has no name.
BEVEL062 Error Bevel cannot tell which dataset a group belongs toThe group's parent dataset is unclear, missing, or not a list.
BEVEL063 Error The group has no key to identify itemsBevel needs a Key (or a Slug or Id) to link group entries back to items.
BEVEL064 Error Group keys are empty or duplicatedTwo items share a key, or an item has an empty key.
BEVEL065 Error The group's type name is not usableThe TypeName is not a valid C# name, or it repeats a name Bevel already generates.
BEVEL066 Error The group's OrderBy names a member that does not existOrderBy on a group accepts only Text, Slug, Value or Count.
BEVEL067 Error A group option is invalidA date Format is not valid, or two [GroupByFlag] texts produce the same slug.
BEVEL068 Error The grouper type is not usableThe type in [GroupBy<TGrouper>] is abstract, generic, or missing IGrouper.
BEVEL069 Error The grouper does not match the member's typeThe grouper's TValue is not the member's type or its element type.
BEVEL070 Error A grouper returned empty textYour grouper returned an empty Text for a value.
BEVEL071 Error Two group values have the same slugYour grouper gave two different values one slug.
BEVEL072 Error A grouper failedBevel could not create your grouper, or it threw.
BEVEL074 Error Bevel cannot find a type in your Data codeA grouper or processor is declared outside the Data/ folder.
BEVEL075 Error The group name is reservedThe group name collides with a member of the generated collection.
BEVEL076 Error A grouping attribute is declared twiceThe same member has conflicting grouping declarations.
BEVEL077 Warning Group spellings were mergedValues with different spellings share a slug, so Bevel merged them into one group.
BEVEL078 Error A [Reference] is declared twiceThe same member has conflicting [Reference] (or [Process]) declarations.
BEVEL079 Error Two items share a [Unique] valueTwo items of a list have the same value in a [Unique] member.
BEVEL080 Error A Markdown member name is reservedYour Markdown record declares a member that Bevel used to fill in, like Html.
BEVEL081 Error A processor's source member is invalidThe member named in [Process] does not exist, or is not a public property.
BEVEL082 Error Processors are chainedA processor's source is itself processed, or is the member itself.
BEVEL083 Error The processor type is not usableThe processor is abstract or generic, or does not implement the processor interface exactly once.
BEVEL084 Error The processor's types do not matchThe processor takes or returns a type that does not fit the member.
BEVEL085 Error A processor threwA processor threw an exception, or a record processor returned null.
BEVEL086 Error A processor could not be createdBevel could not build the processor, usually because a service is not registered.
BEVEL087 Error [Process] has the wrong source settingA member-level [Process] has no source, or a record-level one has one.
BEVEL088 Error A member has both [Reference] and [Process]One member cannot have a [Reference] and a [Process].
BEVEL089 Warning Values differ only by caseTwo [Unique] values differ only by case. This can overwrite files on some systems.
BEVEL090 Error [Unique] cannot go here[Unique] is on a dataset with a single object, or on a member that is not a public property.
BEVEL091 Error IgnoreCase needs a string[Unique(IgnoreCase = true)] is on a member that is not text.
BEVEL092 Error A required member is missingAn item has no value for a member that is not optional.
BEVEL093 Error A processor removed a single objectA processor removed the item of a dataset that loads one object.
BEVEL094 Error A reference points at its own datasetA [Reference] points back at the dataset the item lives in. Bevel cannot resolve that.
BEVEL095 Error Two datasets share a resource nameTwo datasets would be stored under the same embedded resource name.
BEVEL096 Error The post-processor type is not usableThe type in [PostProcess<T>] is abstract, generic, or does not match the item type.
BEVEL097 Error A post-processor failedA post-processor threw, returned null, or sits on a dataset with a single object.
BEVEL098 Error Bevel cannot read this file formatA [DataSource] path ends in an extension no format reader handles.
BEVEL099 Error A format reader failedA format reader threw while reading one of your files.
BEVEL100 Error A format reader cannot be registeredBevel rejected the reader you passed to AddBevelFormat.

Write your own codes

A processor that takes BevelLoadContext can report its own diagnostics. Use a code with letters, digits, _ and -. This site uses the DOCS prefix. Bevel adds help links only for BEVELnnn codes.