Quise agregar un campo adicional a la alerta cumpleañeros, de esta forma

select 'Expedientes' controller_area, 
           'Empleado' controller_name,
           'Edit' controller_action, 
           emp_codigo codigo_entidad, 
           exp_nombres_apellidos texto_link, 
           pue_nombre Columna1,
           replace(left(convert(varchar, exp_fecha_nac, 113), 6), ' ', '-') Columna2,
           isnull('<img src="http://localhost/Evolution/Common/ViewImage/' + cast(exp_codupf as varchar(100)) + '?width=150" />', '') Columna3,
           'XYZ' Columna4

Pero me presenta este error

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
   at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
   at Aseinfo.VH4.WindowsServices.ApplicationJobs.AlertaJob.Execute(JobExecutionContext context) in c:\VH4\VH4\WindowsServices\ApplicationJobsWindowsService\ApplicationJobs\AlertaJob.cs:line 193

Segun la documentacion se pueden agregar hasta 5 columnas.

Esta bien el formato o tengo que hacer algo adicional ademas de moficar el procedimiento ?

asked 05 Sep '14, 18:02

sbarahona's gravatar image

sbarahona ♦♦
(suspended)
accept rate: 32%


Ya se puso un Issue #1706 par resolver el problema, porque es un bug a nivel del código fuente.

Como solución temporal mientras se incluye en una actualización futura, lo que se puede hacer es redacarta la 'Columna4' de esta manera:

CAST('XYX' AS CHAR(4000)) Columna4
link

answered 02 Oct '14, 17:03

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635
accept rate: 51%

edited 02 Oct '14, 17:04

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×25

Asked: 05 Sep '14, 18:02

Seen: 1,665 times

Last updated: 02 Oct '14, 17:04

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática