GeneXus - error: System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto

 
Vista:
sin imagen de perfil

error: System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto

Publicado por marco (1 intervención) el 29/05/2015 22:00:19
Estoy recien iniciandome en el mundo de Genexus y me ha salido un problema Utilizo la version Genexus ev3 version 10.3.81296 con sql server 2008 R2

2 Warning


rgz0007 Attribute ProductStock does not allow nulls and does not have an Initial Value. An empty default value will be used.

rgz0005 For each value of ProductId there may be several values of ProductDescription, ProductPrice.


Al Reorganizar me lanza el siguiente error

========== Build All started ==========
========== Database Impact Analysis started ==========
Processing ...
Searching for new or changed tables ...
Analyzing Product ...
Removing specification files ...
Specification files removed.
Generating messages for Spanish ...
Generators messages generated.
Specifying ProductConversion ...
warning: rgz0007: Attribute ProductStock does not allow nulls and does not have an Initial Value. An empty default value will be used.
warning: rgz0005: For each value of ProductId there may be several values of ProductDescription, ProductPrice.
Analyzing InvoiceProduct ...
Specifying InvoiceProductConversion ...
Analyzing Customer ...
Specifying CustomerConversion ...
Searching for deleted tables ...
Loading table and attribute properties ...
Saving specifications.
Database Impact Analysis Success
Generating Resources...
error: System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
en Artech.Genexus.Common.Objects.Image.GetImageFor(EntityKey theme, EntityKey language)
en Artech.Genexus.Common.CustomTypes.LocalizableImageConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
en Artech.Genexus.Common.Objects.Themes.GxClassThemeStyle.GetStyleRuleContent(String subClass, Boolean forDesigner)
en Artech.Genexus.Common.Objects.Themes.GxClassThemeStyle.GetStyleRule(Boolean forDesigner)
en Artech.Genexus.Common.Objects.Themes.StylesContainerHelper.GetCssSource(Theme theme, Boolean forDesigner)
en Artech.Genexus.Common.Parts.ThemeStylesPart.GetCssSource(Boolean forDesigner)
en Artech.Genexus.Common.Objects.Themes.ThemeCSSTypeInfo.GetSource()
en Artech.Genexus.Common.Objects.Theme.WriteSource(Stream stream, String basePath, Boolean designerPath, SourceDelegate getSource)
en Artech.Genexus.Common.Objects.Theme.WriteSourceToFile(String path, String basePath, Boolean designerPath)
en Artech.Genexus.Common.Objects.Theme.WriteSourceToFile(String location, String basePath)
en Artech.Packages.Generators.Services.GeneratorsService.AddResourceDirectorySpecific(Configuration c, SWComposition writers, Dictionary`2 folders, List`1 themes, IEnumerable`1 languages, Boolean& forced)
en Artech.Packages.Generators.Services.GeneratorsService.CreateImages(Configuration c, SWComposition writers, List`1 languages)
en Artech.Packages.Generators.Services.GeneratorsService.GenerateResources(KBModel model)
Failed
========== Default (C# Web) Generation started ==========
Generating to CSharpModel\web\reorg.cs
Generating to CSharpModel\web\ReorganizationScript.txt
Generating to CSharpModel\web\gxcfg.js
Generating to CSharpModel\web\GXCFG.WEB
Generating to CSharpModel\web\client.exe.config
Generating to CSharpModel\web\WCFClient.config
Generating to CSharpModel\web\_COPYCLS.GEN
Generating to CSharpModel\web\REORGPGM.GEN
Generating to CSharpModel\web\reorganization.cs
Generating to CSharpModel\web\gxmetadata\gxversion.json
Generating to CSharpModel\web\gxmetadata\gx_entity_list.json
Generating to CSharpModel\web\bldReorganization.cs
Generating to CSharpModel\web\reorganization.rsp
Generating to CSharpModel\web\runsets.ini
Default (C# Web) Generation Success
error: Error in reorganization
Build All Failed
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de ruben

error: System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto

Publicado por ruben (72 intervenciones) el 30/05/2015 01:14:50
hola buen día.

el problema es que al querer hacer la reorganización en las tablas de la base de datos. te dice que el atributo esta establecido para que no acepte nulos. y es necesario que establezcas un valor inicial.

Caso 1:
Si es un atributo (llave foranea) hay 2 cosas.

1- hay una columna en la transaccion " NULLABLE" , solo cambiala a YES. para que acepte nulos.

2-Si no quieres que acepte nulos. en la propiedades del atributo de la llave foranea , busca la propiedad "Initial value" y coloca un numero, con cual se inicialice los campos.

Nota: Este VALOR tiene que existir en la base de datos como llave primaria.

Saludos
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar